DRIVERS-3535 - Client Backpressure with baseBackoffMS#1953
Open
NoahStapp wants to merge 21 commits into
Open
Conversation
tadjik1
reviewed
Jun 18, 2026
tadjik1
reviewed
Jun 18, 2026
tadjik1
reviewed
Jun 18, 2026
tadjik1
reviewed
Jun 18, 2026
tadjik1
reviewed
Jun 18, 2026
Co-authored-by: Sergey Zelenov <sergey.zelenov@mongodb.com>
tadjik1
reviewed
Jun 18, 2026
tadjik1
left a comment
Member
There was a problem hiding this comment.
Thanks @NoahStapp, everything looks good! I will keep an eye on retryAfterMS max value, once it's set I'll approve this PR.
blink1073
requested changes
Jun 18, 2026
Co-authored-by: Steven Silvester <steve.silvester@mongodb.com>
Contributor
Author
|
After further discussion with Server, I've simplified the backoff calculation formula to remove the custom jitter for |
Member
|
As a note, the two failing checks should be fixed by #1958 |
blink1073
reviewed
Jun 24, 2026
| retry_after_ms = exc.retry_after_ms | ||
| if retry_after_ms: | ||
| retry_after = retry_after / 1000 # Convert from milliseconds to seconds | ||
| backoff = jitter * min(MAX_BACKOFF, retry_after * 2 ** (attempt - 1)) |
Member
There was a problem hiding this comment.
jitter is undefined in this if block, should it be hoisted to above it?
blink1073
approved these changes
Jun 24, 2026
tadjik1
approved these changes
Jun 25, 2026
jyemin
requested changes
Jun 25, 2026
jyemin
approved these changes
Jun 26, 2026
Contributor
Author
|
SERVER-130142 Will rename |
Jibola
approved these changes
Jul 8, 2026
jyemin
approved these changes
Jul 10, 2026
papafe
added a commit
to papafe/mongo-csharp-driver
that referenced
this pull request
Jul 13, 2026
Update the exponential-backoff formula from 2^(attempt-1) to 2^attempt per the client-backpressure and transactions-convenient-api spec change (mongodb/specifications#1953), and update the dependent backoff tests. Also adds the baseBackoffMS overload integration test.
papafe
added a commit
to papafe/mongo-csharp-driver
that referenced
this pull request
Jul 13, 2026
Update the exponential-backoff formula from 2^(attempt-1) to 2^attempt per the client-backpressure and transactions-convenient-api spec change (mongodb/specifications#1953), and update the dependent backoff tests. Also adds the baseBackoffMS overload integration test.
tadjik1
approved these changes
Jul 13, 2026
sanych-sun
approved these changes
Jul 14, 2026
sanych-sun
left a comment
Member
There was a problem hiding this comment.
Transactions-convenient-api changes is OK.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please complete the following before merging:
clusters).